From cc2446d29bc9949ec79a65bf4bd64ebd040820f2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 6 Jan 2012 23:27:46 +0100 Subject: [PATCH] reftests: Add a CSS file to reset properties to default values We can use this to be independant of themes. See the comment at the top of the file --- tests/reftests/Makefile.am | 1 + tests/reftests/reset-to-defaults.css | 55 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 tests/reftests/reset-to-defaults.css diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 058529d921..27f0cf58dc 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -163,6 +163,7 @@ EXTRA_DIST += \ paned-undersized.ui \ quit-mnemonic.ref.ui \ quit-mnemonic.ui \ + reset-to-defaults.css \ rotated-layout.ref.ui \ rotated-layout.ui \ shorthand-entry-border.css \ diff --git a/tests/reftests/reset-to-defaults.css b/tests/reftests/reset-to-defaults.css new file mode 100644 index 0000000000..8af2a1f795 --- /dev/null +++ b/tests/reftests/reset-to-defaults.css @@ -0,0 +1,55 @@ +/* @import this colorsheet to get the default values for every property. + * This is useful when writing special CSS tests that should not be + * inluenced by themes - not even the default ones. + * Keep in mind that the output will be very ugly and not look like + * anything GTK. + * Also, when adding new style properties, please add them here. + */ + +* { + color: inherit; + font-size: inherit; + background-color: initial; + font-family: inherit; + font-style: inherit; + font-variant: inherit; + font-weight: inherit; + text-shadow: inherit; + icon-shadow: inherit; + box-shadow: initial; + margin-top: initial; + margin-left: initial; + margin-bottom: initial; + margin-right: initial; + padding-top: initial; + padding-left: initial; + padding-bottom: initial; + padding-right: initial; + border-top-width: initial; + border-left-width: initial; + border-bottom-width: initial; + border-right-width: initial; + border-top-left-radius: initial; + border-top-right-radius: initial; + border-bottom-right-radius: initial; + border-bottom-left-radius: initial; + border-top-style: initial; + border-left-style: initial; + border-bottom-style: initial; + border-right-style: initial; + background-clip: initial; + background-origin: initial; + border-top-color: initial; + border-right-color: initial; + border-bottom-color: initial; + border-left-color: initial; + background-repeat: initial; + background-image: initial; + border-image-source: initial; + border-image-repeat: initial; + border-image-slice: initial; + border-image-width: initial; + engine: initial; + transition: initial; + gtk-key-bindings: initial; +} -- 2.30.2